/**
 * @author Mirko Bordjoski
 */	
package org.piwik.shortcuts
{
	import org.piwik.Piwik;
	import org.piwik.requests.*;
	
	/**
	* The QuickPiwik class contains all possible methods you can use to get the data from the Piwik 
	* and enables to load the data from the piwik analitycs. 
	* @note		PiwikSetup object must be defined before sending any requests.
	* @see		org.piwik.PiwikSetup
	* @see		org.piwik.Piwik
	*/
	public class QuickPiwik extends Piwik
	{
		
		/**
		 * Constructor.
		 */
		public function QuickPiwik(){}
		
		
		/**
		* Loads the number of visits.
		* <p />
		* 
		* @param	$date			[optional] You can use magic words like 'last[num_of_days]' eg 'last30', 'yesterday', 'today' or just pass date in format YYYY-MM-DD.
		* @param	$period			[optional] Can be 'day', 'week', 'month' or 'year'.
		* @param	$filterLimit	[optional] Limit the number of rows.
		* 
		* @see org.piwik.logic.PiwikFormatter
		*/
		public function getVisits($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 30):void
		{
			makeCall(VisitsSummary.getVisits($date,$period,$filterLimit));
		}
		
		public function getVisitsSummary($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 30):void
		{
			makeCall(VisitsSummary.getVisitsSummary($date,$period,$filterLimit));
		}
		
		
		public function perLocalTime($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 30):void
		{
			makeCall(VisitTime.perLocalTime($date,$period,$filterLimit));
		}
		
		
		

	}
}